<?php
if ($itemID_==2212) {
	$hetag = 'Payment';
} else {
	$hetag = 'Application';
}
?>

<head>
<link rel="stylesheet" href="stylesheets/default.css" type="text/css"/>
<script language='Javascript' src='javascripts/default.js'></script>
<div align="CENTER">
<!---// start of the table //-->
<table border=0 cellspacing=0 cellpadding=0   width=100%>
		<tr><td align="center" valign="center" class='header'  width=100%> <?php echo $tag; ?> Permit <?php echo $hetag; ?></td></tr>
		<tr><td align="center" valign="center" class='normal' height=10>&nbsp;</td></tr>
		<tr>

<?php
	if ($PROCESS=='PROCESS') {
		$p='';
	} else {
		$p='Compute';
	}
?>	
		<td align="center" valign="center" class='title'>
			  <form name="_FRM" method="POST"  action ="index.php?vekatt=<?php echo $vekatt; ?>&part=4&class_type=Permits&itemID_=<?php echo $itemID_; ?>&permit_type=<?php echo $tag; ?>&stat=<?php echo $status; ?>&addpay=<?php echo $p; ?>&owner_id=<?php echo $owner_id; ?>&busItem=<?php echo $permit_type; ?>"><!--&mtopsearch=<?php echo $m; ?>">-->
					
					<input type='hidden' name='owner_id' value='<?php echo $owner_id;?>'>
					<input type='hidden' name='status' value='new'>
					<input type='hidden' name='permit_no' value='<?php echo $permitcode;?>'>
					
					
					<table border=0 cellspacing=1 cellpadding=1 width=100%>
						<!--// start of the owner information //-->
					    <tr> 
					      <td align="center" valign="top" class='header1' colspan=4 > 
						Tax Payer Information</td>
					    </tr>
					    <tr> 
						<td align="right" valign="top" class='normal' colspan=4>&nbsp; </td>
					    </tr>
					    <tr> 
					      <td align="right" valign="top" class='normal' colspan=1> &nbsp; 
						 </td>
					      <td align="left" valign="top" class='normal' colspan=3>&nbsp;
					      
					      &nbsp;<a href='index.php?part=4&class_type=Permits&itemID_=1223&business_id=&owner_id=0&com=search&permit_type=<?php echo $permit_type; ?>&stat=New&busItem=<?php echo $permit_type; ?>&search_type=Owner' class='subnavwhite'>
					<!--&nbsp;<a href='index.php?part=4&class_type=Permits&itemID_=<?php echo $itemID_; ?>&permit_type=<?php echo $tag; ?>&mtopsearch=SEARCH&busItem=<?php echo $permit_type; ?>'>-->
					Search</a>&nbsp;
<?php
        if ($owner_id=='') {
?>
                                 <a href='index.php?part=4&class_type=Permits&itemID_=1221&permit_type=<?php echo $permit_type; ?>&mtopadd=ADD&stat=New&busItem=<?php echo $permit_type; ?>'class='subnavwhite'>Add New</a>&nbsp;
<?php
        } else {
				//if ($itemID_==1221) {
?>
				<a href='index.php?part=4&class_type=Permits&busItem=<?php echo $permit_type; ?>&itemID_=1222&permit_type=<?php echo $permit_type; ?>&owner_id=<?php echo $owner_id; ?>&stat=<?php echo $stat; ?>' class='subnavwhite'>Edit</a>&nbsp;
<?php
				//}
}
?>
					      </td>
					    </tr>
					    <tr> 
<td align="right" valign="top" class='normal' width=16.67%>
<?php require_once "includes/owner_info.php";?></td>
					    </tr>
					    <!--// end of the owner information //-->
					        <!--// start of the motorized permit information //-->
						<tr><td align="right" valign="top" class='normal' colspan=4> &nbsp;</td>
						<?php
						if ($permit_type==Franchise || $permit_type==Motorized) {
						?>
							<tr><td align="center" valign="top" class='header2' colspan=4 > Vehicle Information</td></tr>
						<?php
						} elseif ($permit_type==Occupational) {
						?>
							<tr><td align="center" valign="top" class='header2' colspan=4 > Occupational Information</td></tr>
						<?php
						}
						?>
						<tr><td align="right" valign="top" class='normal' colspan=4> &nbsp;</td>
						</tr>
						<tr>
						   	<td align="center" valign="top" class='normal' colspan=4> 
						   		<?php
									if ($permit_type==Franchise || $permit_type==Motorized) {
								?>
						   			<table cellspacing=0 cellpadding=0 border=1 width=56%>
										<tr>
											<td align="center" valign="top" class='header2' colspan=2> 
												List of <?php echo $tag; ?> Vehicles
											</td>
										</tr>	
									</table>
								<?php
									} 
								?>
								<br>
